<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Sergey
 * Date: 08.08.13
 * Time: 21:01
 * To change this template use File | Settings | File Templates.
 */

use Symfony\Component\Console\Helper\HelperSet,
    Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper,
    Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper,
    Doctrine\ORM\Tools\Console\ConsoleRunner;
use Hockey\Dao\Doctrine\DbConnection;

$helperSet = new HelperSet(array(
    'em' => new EntityManagerHelper(DbConnection::getInstance()->getEntityManager()),
    'conn' => new ConnectionHelper(DbConnection::getInstance()->getEntityManager()->getConnection())
));
ConsoleRunner::run($helperSet);